<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>FPC CSS Parser Demo</title>
  <link href="bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet" href="style.css">
  <script src="bootstrap.bundle.min.js"></script>
  <script src="cssdemo.js"></script>
</head>
<body>
  <header>
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
      <div class="container">
        <a class="navbar-brand d-flex align-items-center" href="#">
          <span>Free Pascal Demo</span></a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse justify-content-end" id="navbarNav">
          <ul class="navbar-nav">
            <li class="nav-item">
              <a class="nav-link" aria-current="page" href="https://www.freepascal.org/">
                <i class="bi bi-house-door"></i>
                Home</a>
            </li>
            <!-- If you only have one source code, use this
            <li class="nav-item">
              <a class="nav-link" href="#">
                <i class="bi bi-code-slash"></i>
                Source</a>
            </li> -->
            <li class="nav-item dropdown">
              <a class="nav-link dropdown-toggle" href="#" id="navbarScrollingDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                <i class="bi bi-code-slash"></i>
                Sources
              </a>
              <ul class="dropdown-menu" aria-labelledby="navbarScrollingDropdown">
                <li>
                  <a class="dropdown-item" href="cssdemo.lpr" target="_blank">cssdemo.lpr</a>
                </li>
                <li>
                  <a class="dropdown-item" href="main.pas" target="_blank">main.pas</a>
                </li>
              </ul>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="https://wiki.freepascal.org/pas2js" target="_blank">
                <i class="bi bi-globe2"></i>
                Wiki</a>
            </li>
          </ul>
        </div>
      </div>
    </nav>
  </header>
  <main class="container mb-4">
    <section class="py-5">
      <h1>CSS Parser</h1>  
      <div class="row">
        <div class="col-md my-3">
          <form>
            <div class="my-3">
              <label for="userCss" class="form-label fw-bold">Please enter or copy & paste your CSS:</label>
              <textarea class="form-control" id="userCss" rows="10"></textarea>
            </div>

            <button id="btnMinimize" type="button" _click_="doMinimize" class="btn btn-outline-dark">Minimize CSS</button>
            <button id="btnClassNames" type="button" _click_="doExtract" class="ms-2 btn btn-outline-dark">Extract Class Names</button>
          </form>
        </div>
        <div class="col-md my-3">
          <div class="my-3">
            <label for="userCss" class="form-label fw-bold">Output:</label>
            <textarea class="form-control" id="processedCss" rows="10"></textarea>
          </div>
        </div>
      </div>
    </section>
  </main>

  <footer class="bg-light pt-3 fixed-bottom">
    <div class="container text-center">
      <p class="text-muted">© April 2022</p>
    </div>
  </footer>
  <script>
    window.onload=rtl.run;
  </script>
</body>
</html>